/**
 * 
 * @author Hyuksoo Seo
 * created Oct 15, 2008
 * copyright 2008 by hs2393@columbia.edu
 */
package edu.columbia.ubms.ejb;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

/**
 * @author hennebrueder
 * 
 */
@Entity
@Table(name="userinfo")
/*
@SequenceGenerator(name = "mainpage_sequence", sequenceName = "mainpage_id_seq")
@TableGenerator(  name="bmainpage_id", table="primary_keys", pkColumnName="key", pkColumnValue="mainpage",
                valueColumnName="value")
*/                 
public class UserInfoEntityBean implements Serializable {
     /**
	 * 
	 */
	
	private static final long serialVersionUID = 2L;

	private int userId;
	private String userName;
	private String firstName;
	private String lastName;
	private String password;
	private String email;	
	private char adminFlag;

	public UserInfoEntityBean() {
		super();
	}

	public UserInfoEntityBean(String userName, String firstName,
			String lastName, String password, String email) {
		super();
		this.userName = userName;
		this.firstName = firstName;
		this.lastName = lastName;
		this.password = password;
		this.email = email;
	}

	@Override
	public String toString() {

			return "User Info : " + getUserId() + " UserName " + getUserName() + " FirstName "
							+ getFirstName() + " LastName " + getLastName() + " Password " 
							+ getPassword() + " Email " + getEmail();
	}

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getFirstName() {
		return firstName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public String getLastName() {
		return lastName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public char getAdminFlag() {
		return adminFlag;
	}

	public void setAdminFlag(char adminFlag) {
		this.adminFlag = adminFlag;
	}
}
